package com.lis.scf.common.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.Set;

/**
 * 登录响应DTO
 */
@Data
@AllArgsConstructor
@Schema(description = "用户登录响应数据")
public class LoginResponseDTO {

    @Schema(description = "JWT访问令牌")
    private String accessToken;

    @Schema(description = "令牌类型", example = "Bearer")
    private String tokenType = "Bearer";

    @Schema(description = "令牌过期时间（秒）")
    private long expiresIn;

    @Schema(description = "当前登录用户信息")
    private UserInfoDTO userInfo;

    @Schema(description = "用户拥有的权限列表")
    private Set<String> permissions;
}
